﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BSE.Windows.Test
{
    public class Lingyao
    {
        private String lingyaoID = "";
        private DateTime lingyaoDate = DateTime.Now;
        private int lingyaoNumber = 0;
        private String lingyaoCode = "";
        private String lingyaoComment = "";
        private String linyaoYaopinID = "";
        private Yaopin lingyaoYaopin = new Yaopin();

        public String LingyaoID
        {
            get { return lingyaoID; }
            set { lingyaoID = value; }
        }

        public DateTime LingyaoDate
        {
            get { return lingyaoDate; }
            set { lingyaoDate = value; }
        }

        public String LingyaoCode
        {
            get { return lingyaoCode; }
            set { lingyaoCode = value; }
        }

        public String LingyaoComment
        {
            get { return lingyaoComment; }
            set { lingyaoComment = value; }
        }

        public Yaopin LingyaoYaopin
        {
            get { return lingyaoYaopin; }
            set 
            { 
                lingyaoYaopin = value;
                LinyaoYaopinID = LingyaoYaopin.YaopinID;
            }
        }

        public int LingyaoNumber
        {
            get { return lingyaoNumber; }
            set { lingyaoNumber = value; }
        }

        public string LinyaoYaopinID
        {
            get { return linyaoYaopinID; }
            set { linyaoYaopinID = value; }
        }
    }
}
